package com.woniu108.person.client;


import com.woniu108.carService.commos.model.Result;
import com.woniu108.valueAdded.form.ScoreRecordsForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(name="value-added-server",path = "/value-added")
public interface ValueAddedClient {
    //通过接口文档调用服务接口获得result

    /**
     * 记录用户增减积分历史
     * @param form 积分历史记录基础信息
     * @return result 是否正常访问接口结果
     */
    @PostMapping("/scoreDetailLog/addOrReduceScoreRecords.api")
    public Result addOrReduceScoreRecords(@RequestBody ScoreRecordsForm form);


}
